id: task-215.01 title: 'TUI sequences: read-only view' status: Done assignee:
- '@codex' created_date: '2025-08-23 19:12' updated_date: '2025-08-23 22:32' labels:
- sequences dependencies: [] parent_task_id: task-215
Description
Render a read-only TUI view of sequences using the core compute function (task-213). Show sequences vertically with each task as "task-
Acceptance Criteria
- [x] #1 Lists sequences using computeSequences results
- [x] #2 Displays tasks under each sequence as task-
- - [x] #3 No crashes when rendering large lists
- [x] #4 Render each sequence as a bordered block labeled "Sequence
" with tasks inside
Implementation Plan
Plan:
- Add read-only blessed TUI view for sequences.
- Use computeSequences to populate groups; no extra logic.
- Render vertically: "Sequence
" header + "task- - " lines. - Keys: q/Esc to exit; arrows not required yet.
- Replace interactive path of
sequence listto call this view. - Ensure large lists render without crashing; avoid heavy reflow.
Implementation Notes
Implementation Notes:
- Added
runSequencesViewinsrc/ui/sequences.tsusing blessed; read-only, scrollable, exits withq/Esc. - Wired CLI interactive path (
backlog sequence list) to call the new view;--plainoutput unchanged. - Uses
computeSequencesfrom core to populate groups; no duplicate logic. - Renders lines as
Sequence <n>:followed bytask-<id> - <title>. - Designed for large lists: scrollable container with
alwaysScrolland minimal reflow.
Updated TUI to render one bordered block per sequence, labeled and stacked vertically. Interactive default invokes the TUI; --plain unchanged. Verified type-check and relevant tests.
Final check: Verified bordered blocks render correctly without overlapping container borders (left:0, right:0). Ready to proceed to navigation/detail in 215.02.